package com.shensi.api.pay.client;


import com.shensi.api.pay.pojo.OilEngine;
import com.shensi.api.pay.pojo.dto.OilEngineDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.api.pay.param.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Api("油机数据")
@FeignClient(name = CloudConstant.PAY_SERVER, path = "/engine")
public interface OilEngineClient {



    /**
     * 查询油机数据录入信息
     * 根据油枪和订单创建时间查询10分钟的订单
     * */
    @PostMapping("/list")
    @ApiOperation(value = "查询油机数据录入信息", response = OilEngine.class)
    public ResultData getOilEngineList(@RequestBody(required = false) OilEngine oilEngine);

    /**
     * 公众号支付油机订单后，修改订单状态和记录支付时间
     * */
    @PostMapping("/payment")
    @ApiOperation(value = "修改订单状态和记录支付时间")
    public ResultData paymentOilOrder(@RequestBody OilEngineDto oilEngineDto);


}
